package com.crr.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javafx.beans.property.SimpleDoubleProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sku")
@ApiModel("商品规格")
public class Sku {
    @TableId(value = "sku_id", type = IdType.AUTO)
    @ApiModelProperty("规格")
    int skuId;
    @TableField("spu_id")
    @ApiModelProperty("产品id")
    int spuId;
    @ApiModelProperty("产品名")
    String skuName;
    @ApiModelProperty("多个销售属性")
    String attrs;
    @ApiModelProperty("图片路径")
    String imgUrl;
    @ApiModelProperty("售价")
    double priceFee;
    @ApiModelProperty("市场价")
    double marketPriceFee;
    @ApiModelProperty("产品编码")
    String partyCode;
    @ApiModelProperty("产品条形码")
    String modelId;
    @ApiModelProperty("产品重量")
    double weight;
    @ApiModelProperty("产品体积")
    double volume;
    @ApiModelProperty("状态")
    int status;
    @ApiModelProperty("实际库存")
    @TableField(exist = false)
    Integer actualStock;

}
